Autogenerated HTML docs for v1.8.3.2-701-g8c4e4ec
diff --git a/git-rev-parse.html b/git-rev-parse.html index f909fa2..0726d76 100644 --- a/git-rev-parse.html +++ b/git-rev-parse.html
@@ -847,6 +847,26 @@ </p> </dd> <dt class="hdlist1"> +--prefix <arg> +</dt> +<dd> +<p> + Behave as if <em>git rev-parse</em> was invoked from the <code><arg></code> + subdirectory of the working tree. Any relative filenames are + resolved as if they are prefixed by <code><arg></code> and will be printed + in that form. +</p> +<div class="paragraph"><p>This can be used to convert arguments to a command run in a subdirectory +so that they can still be used after moving to the top-level of the +repository. For example:</p></div> +<div class="listingblock"> +<div class="content"> +<pre><code>prefix=$(git rev-parse --show-prefix) +cd "$(git rev-parse --show-toplevel)" +eval "set -- $(git rev-parse --sq --prefix "$prefix" "$@")"</code></pre> +</div></div> +</dd> +<dt class="hdlist1"> --verify </dt> <dd> @@ -1704,7 +1724,7 @@ <div id="footnotes"><hr /></div> <div id="footer"> <div id="footer-text"> -Last updated 2013-04-21 19:25:38 PDT +Last updated 2013-07-01 14:29:27 PDT </div> </div> </body>